
    var swiper = new Swiper('.swiper-container', {
      lazy: {
        loadPrevNext: true, // 仅加载可见区域的前后图片
    },
      slidesPerView: 3, // 每次显示3个滑块
      spaceBetween: 30, // 幻灯片之间的间隔
      loop: true, // 无限循环
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
      breakpoints: {
        1024: {
          slidesPerView: 3,
          spaceBetween: 30,
        },
        768: {
          slidesPerView: 2,
          spaceBetween: 20,
        },
        568: {
          slidesPerView: 1,
          spaceBetween: 10,
        },
      },
    });